package com.starry.compose_study.compositionlocal

/**
 * 显式传参
 */
class ExplicitText {
    fun Layout() {
        var color: String = "black"
        //参数需要层层床底比较繁琐
        Text(color)
        Grid(color)
    }


    private fun Grid(color: String) {
        println("other components in Grid")
        Text(color)
    }

    private fun Text(color: String) {
        println(color)
    }

}

fun main() {
    val ep = ExplicitText()
    ep.Layout()
}